package com.ypj.indusynergyems.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ypj.indusynergyems.common.convention.result.Result;
import com.ypj.indusynergyems.dao.entity.MenuEntity;

import java.util.List;

public interface IMenuService extends IService<MenuEntity> {
    /**
     *
     * @return
     */
    List<MenuEntity> findAllMenu();


    /**
     * 根据角色ID查询菜单
     * @param roleId
     * @return
     */
    List<MenuEntity> findUserMenuList(int roleId);

    void addMenu(MenuEntity menu);

    MenuEntity findMenuDetail(int menuId);

    void editMenu(MenuEntity menu);

    String deleteMenu(int menuId);
}
